<include file="__PUBLIC__/head.php">
	<title>网站配置</title>
</head>



<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'index'}" class="act"><i class="icon-wrench mr3 gray"></i>配置管理</a>
		<a href="{|U:'add'}" class="_add"><i class="icon-plus mr3 gray"></i>添加配置</a>
		<a href="{|U:'updateCache'}" class="ajax" actUrl="{|U('index')}"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tc">lid</th>
				<th class="pct25">配置名称</th>
				<th class="">字段名</th>
				<th class="">配置值</th>
				<th class="pct20 tc">操作</th>
			</tr>
			<foreach from="$config" value="$cf">
				<tr>
					<td class='tc'><span class="b gray2">{$cf.cfid}</span></td>
					<td class=''><span class="ainput" _name="title" cfid="{$cf.cfid}" post="{|U:'_ajax'}">{$cf.title}</span></td>
					<td class=''><span class="ainput" _name="name" cfid="{$cf.cfid}" post="{|U:'_ajax'}">{$cf.name}</span></td>
					<td class='f14 fv'><span class="ainput" _name="val" cfid="{$cf.cfid}" post="{|U:'_ajax'}">{$cf.val}</span></td>
					<td class='tc'>
						<a href="{|U:'del'}" cfid="{$cf.cfid}" class="a bgwhite _dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删除</a>
					</td>
				</tr>
			</foreach>
		</table>
		<div class="p10 page mt10">{$page}</div>
	</div>



	<div id="add" class="dn">
		<form action="{|U('add')}" method="post" enctype="multipart/form-data">
			<table class="table form">
				<th colspan="2"><i class="icon-wrench mr3 gray"></i>添加配置项</th>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">配置名称</span></td>
					<td><input class="pct70" type="text" name="title" placeholder="中文，方便记忆"  /></td>
				</tr>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">字段名称</span></td>
					<td><input class="pct70" type="text" name="name" placeholder="英文名，网站整体调用"  /></td>
				</tr>
				<tr class='fm f14 bgwhite'>
					<td class="tr f14 fm pct20"><span class="pr10">配置项值</span></td>
					<td><input class="pct70" type="text" name="val"  /></td>
				</tr>
			</table>
			<div class="mt10 tc fm"><input type="submit" class="btn bgblack f20" value='确定操作' /></div>
		</form>
	</div>







<include file="__PUBLIC__/bottom.php">